//
//  KABCosDetailTCell.h
//  kabu
//
//  Created by XiangDongMBP on 2017/2/9.
//  Copyright © 2017年 East. All rights reserved.
//

#import <UIKit/UIKit.h>

@class KABCosDetailTCell;
@protocol KABCosDetailTCellDelegate <NSObject>
@optional
- (void)kABCosDetailTCell:(KABCosDetailTCell *)cell imgViewDownload:(UIImageView *)imgView;
- (void)kABCosDetailTCell:(KABCosDetailTCell *)cell imgViewTapped:(UIImageView *)imgView;
@end

@class KABCosDetPubItem;
@interface KABCosDetailTCell : UITableViewCell

@property (weak, nonatomic) IBOutlet UIImageView *cosImgView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *cosImgViewHeightConstraint;
@property (weak, nonatomic) IBOutlet UILabel *desLabel;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *desLabelTopConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *desLabelBottomContraint;

@property (weak, nonatomic) id<KABCosDetailTCellDelegate>delegate;
- (void)configViewWithCosDetPubItem:(KABCosDetPubItem *)item loadImage:(BOOL)loadImage;
@end


// 商品详情复用该Cell
@class KABProDetailImgItem;
@interface KABCosDetailTCell (MallProductDetail)

- (void)configViewWithProDetImgItem:(KABProDetailImgItem *)item;

@end
